package java_new_project;

import person.person;

public class Print_person {
    public static void main(String[] args) {
        //boy定义有参的构造方法
        boy boy1 = new boy("zhangsan","male",12);
        //girl定义的无参的构造方法
        girl girl1 = new girl();
        //通过使用get_name_get发放进行参数导入
        girl1.get_name_age("Jenny",18);


        boy1.print();
        boy1.Only_boy("C T R L");

        girl1.print();

        person boy2 =new boy("The king of world ","king",18);
        boy2.print();

    }
}
